package org.wen.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.wen.entity.UserInfo;
import org.wen.mapper.UserInfoMapper;
import org.wen.service.UserInfoService;

@Service
public class UserInfoServiceImpl implements UserInfoService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public void add(UserInfo userInfo) {
        userInfoMapper.insert(userInfo);
    }

    @Override
    public UserInfo selectByPrimaryKey(int id) {
        return userInfoMapper.selectByPrimaryKey(id);
    }
}
